/*
Copyright (C) 2022-2024 Inspur Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
*/
package wsreg

import (
	"icep/controller"

	"github.com/emicklei/go-restful"
)

func RegisterFileEvidenceWebService(ws *restful.WebService, controller *controller.IcepController) {
	// 查询文件存证列表——分页
	ws.Route(ws.GET("/icep/evidence/file/query").To(controller.GetFileEvidencePage))
	// 查询文件存证列表
	ws.Route(ws.GET("/icep/evidence/file/list").To(controller.GetFileEvidenceList))
	// 查询文件存证详情
	ws.Route(ws.GET("/icep/evidence/file/detail").To(controller.GetFileEvidenceInfo))
	// 创建文件存证
	ws.Route(ws.POST("/icep/evidence/file/create").To(controller.CreateFileEvidence))
	ws.Route(ws.POST("/icep/evidence/file/hash/create").To(controller.CreateFileHashEvidence))   //哈希类文件存证接口
	ws.Route(ws.POST("/icep/evidence/nokey/file/create").To(controller.CreateFileNokeyEvidence)) //非秘钥托管类文件存证接口
	//解密
	ws.Route(ws.POST("/icep/evidence/file/decrypt").To(controller.DecryptFileEvidence))
}
